import request from '@/utils/request'

// 查询付款申请列表
export function listPayment(query) {
  return request({
    url: '/payment/Payment/list',
    method: 'get',
    params: query
  })
}

// 查询付款申请详细
export function getPayment(payId) {
  return request({
    url: '/payment/Payment/' + payId,
    method: 'get'
  })
}

// 新增付款申请
export function addPayment(data) {
  return request({
    url: '/payment/Payment',
    method: 'post',
    data: data
  })
}

// 修改付款申请
export function updatePayment(data) {
  return request({
    url: '/payment/Payment',
    method: 'put',
    data: data
  })
}

// 删除付款申请
export function delPayment(payId) {
  return request({
    url: '/payment/Payment/' + payId,
    method: 'delete'
  })
}

export function getfkcheckedlist(query) {
  return request({
    url: '/system/wecom/getfkcheckedlist',
    method: 'get',
  })
}